/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wp1.servlets;

import org.directwebremoting.ServerContext;

/**
 *
 * @author jio
 */
public class Wp1ApiFactory {
    private static Wp1ApiImpl api;

    public static void create(Service s, ServerContext sc) {
        api = new Wp1ApiImpl();
        api.setService(s);
        api.setWctx(sc);
    }

    public static Wp1ApiImpl getInstance() {
        return api;
    }

}
